using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntitySysCarShopsUpdateExtend
{
		public static SysCarShops ToUpdateEntity(this RequestSysCarShopsDto dto)
		{
			return new SysCarShops
			{
				CsId = dto.id,
				CsName = dto.name,
				CsIsBan = dto.isBan,
				CsIsSelf = dto.isSelf,
				CsAddress = dto.address,
				CsProvince = dto.province,
				CsCity = dto.city,
				CsCounty = dto.county,
				CsPostalCode = dto.postalCode,
				CsPhone = dto.phone,
				CsEmail = dto.email,
				CsWebsite = dto.website,
				CsType = dto.type,
				CsManagerName = dto.managerName,
				CsIsOpen = dto.isOpen,
				CsOperatingHours = dto.operatingHours,
				CsNotes = dto.notes,
			};
		}
	}
}
